package com.luoqiu.cinema.mapper;

import com.luoqiu.cinema.common.BuyMovieParam;
import com.luoqiu.cinema.eitityExtends.TicketEx;
import com.luoqiu.cinema.entity.TicketUser;import org.apache.ibatis.annotations.Param;import java.util.List;

public interface TicketUserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(TicketUser record);

    int insertSelective(TicketUser record);

    TicketUser selectByPrimaryKey(Integer id);

    TicketUser selectByPrimaryKey1(Integer id);

    int updateByPrimaryKeySelective(TicketUser record);

    int updateByPrimaryKey(TicketUser record);

    List<TicketUser> loadAllLocation(@Param("movieId") Integer movieId, @Param("placeId") Integer placeId);

    TicketUser loadByUserIdAndParam(@Param("userId") Integer userId, @Param("param") BuyMovieParam buyMovieParam);

    List<TicketEx> loadByUserId(@Param("userId") Integer userId);

    void delByMovieId(Integer id);

    TicketUser loadByMovieIdAndPlaceId(@Param("movieId") Integer movieId, @Param("placeId") Integer placeId);

    void delByPlaceId(@Param("id") Integer id);
}
